def careful_divide(a, b):
    """divide a by b

    Raises:
        ValueError: when the inputs cannot be divided.
    """
    try:
        return a / b
    except ZeroDivisionError:
        raise ValueError("Invalid inputs")


def run_divide(x, y):
    try:
        result = careful_divide(x, y)
    except ValueError:
        print("Invalid inputs")
    else:
        print(f"{x} / {y} = {result}")


run_divide(1, 5)
run_divide(0, 5)
run_divide(5, 0)
